Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: No toast on removal of untrusted mark #16972

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

caybro
Copy link
Member

@caybro caybro commented Dec 13, 2024

What does the PR do

  • emit a toast/notification when we remove someone's "untrusted" mark

Fixes #16949

Affected areas

Profile

Architecture compliance

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

Marked as untrusted:
Snímek obrazovky z 2024-12-16 11-40-18

Removed the untrusted mark:
image

@caybro caybro linked an issue Dec 13, 2024 that may be closed by this pull request
@status-im-auto
Copy link
Member

status-im-auto commented Dec 13, 2024

Jenkins Builds

Click to see older builds (7)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a650a86 #1 2024-12-13 23:38:40 ~6 min macos/aarch64 🍎dmg
✔️ a650a86 #1 2024-12-13 23:40:34 ~8 min tests/nim 📄log
✔️ a650a86 #1 2024-12-13 23:44:19 ~11 min tests/ui 📄log
✔️ a650a86 #1 2024-12-13 23:48:25 ~16 min macos/x86_64 🍎dmg
✔️ a650a86 #1 2024-12-13 23:51:51 ~19 min linux-nix/x86_64 📦tgz
✔️ a650a86 #1 2024-12-13 23:52:11 ~19 min linux/x86_64 📦tgz
✔️ a650a86 #1 2024-12-13 23:54:15 ~21 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 3d29949 #2 2024-12-16 10:23:48 ~4 min macos/aarch64 🍎dmg
✔️ 3d29949 #2 2024-12-16 10:27:05 ~7 min tests/nim 📄log
✔️ 3d29949 #2 2024-12-16 10:30:42 ~11 min macos/x86_64 🍎dmg
✔️ 3d29949 #2 2024-12-16 10:31:12 ~11 min tests/ui 📄log
✔️ 3d29949 #2 2024-12-16 10:35:37 ~16 min linux-nix/x86_64 📦tgz
✔️ 3d29949 #2 2024-12-16 10:37:37 ~18 min linux/x86_64 📦tgz
✔️ 3d29949 #2 2024-12-16 10:39:21 ~20 min windows/x86_64 💿exe
✔️ 4501e9e #3 2024-12-16 11:02:02 ~5 min macos/aarch64 🍎dmg
✔️ 4501e9e #3 2024-12-16 11:04:31 ~7 min tests/nim 📄log
✔️ 4501e9e #3 2024-12-16 11:07:23 ~10 min macos/x86_64 🍎dmg
✔️ 4501e9e #3 2024-12-16 11:08:53 ~12 min tests/ui 📄log
✔️ 4501e9e #3 2024-12-16 11:12:31 ~15 min linux-nix/x86_64 📦tgz
✔️ 4501e9e #3 2024-12-16 11:15:03 ~18 min linux/x86_64 📦tgz
✔️ 4501e9e #3 2024-12-16 11:16:15 ~19 min windows/x86_64 💿exe

@caybro caybro force-pushed the 16949-no-toast-on-removal-of-untrusted-mark branch from a650a86 to 3d29949 Compare December 16, 2024 10:18
- extend the store method with a "displayName" param
- emit a toast/notification when we remove someone's "untrusted" mark

Fixes #16949
@caybro caybro force-pushed the 16949-no-toast-on-removal-of-untrusted-mark branch from 3d29949 to 4501e9e Compare December 16, 2024 10:56
@caybro caybro marked this pull request as ready for review December 16, 2024 10:56

const contactDetails = Utils.getContactDetailsAsJson(pubKey, false, false, true)
const displayName = SQUtils.Emoji.parse(ProfileUtils.displayName(contactDetails.localNickname, contactDetails.name, contactDetails.displayName, contactDetails.alias))
Global.displaySuccessToastMessage(qsTr("Untrusted mark removed for %1").arg(displayName))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to have the call start from the Nim side, since it might have failed.

We call the event SIGNAL_REMOVED_TRUST_STATUS if the action succeeded. You can hook into one of the modules that listens to that event and then call the usual signal to have a ToastMessage

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll have a look yeah, good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No toast on removal of untrusted mark
3 participants